<%--
    Document   : mantDeportes
    Created on : 9/06/2009, 08:22:59 PM
    Author     : WILLIAM GASTAÑUEDI
--%>

<%@page contentType="text/html"%>
<%@page pageEncoding="UTF-8"%>

<%@taglib prefix="f" uri="http://java.sun.com/jsf/core"%>
<%@taglib prefix="h" uri="http://java.sun.com/jsf/html"%>
<%@taglib prefix="t" uri="http://myfaces.apache.org/tomahawk"%>
<%@taglib prefix="r" uri="http://richfaces.ajax4jsf.org/rich" %>
<%@ taglib uri="http://richfaces.org/a4j" prefix="a4j"%>
<script language="javascript" src="../js/funciones.js"></script>
<link href="/colegiatura/Estilos/estilosEsymons.css" rel="stylesheet" type="text/css" />

<f:view>
<h:form id="frmMantDepor" >
<table width="100%" border="0">
  <tr>
    <td colspan="5" align="left" class="texto3">
     <h:outputLabel value="Mantenimiento de Deporte" styleClass="texto3"/></td>
  </tr>
  <tr><td height="20">
     <a4j:outputPanel ajaxRendered="true">
    <h:messages id="lblMessages" styleClass="messages" infoClass="infoClass" errorClass="errorClass"
                warnClass="warnClass" showDetail="true" errorStyle="color:red;"
                warnStyle="color:green;" infoStyle="color:black;" fatalStyle="color:black"/>
    </a4j:outputPanel>
      </td>
  </tr>
  <tr>
    <td colspan="5" align="left" >
        <h:commandButton action="#{deporteController.nuevo}" value="Nuevo Deporte" id="btnnew" styleClass="enlace9" /></td>
  </tr>
  <tr>
      <td colspan="5" height="15"></td>
  </tr>
  <tr>
    <td colspan="5">
        <r:dataTable  value="#{deporteController.listaDeporte}" var="deporte" rowClasses="TableImpar,TablePar"
        rows="10" reRender="dt" id="TableDeporte" border="0" headerClass="texto18">
           <r:column width="480" sortBy="#{deporte.depDescripcion}"  filterBy="#{deporte.depDescripcion}" filterEvent="onkeyup" >
                <f:facet name="header">
                     <h:outputLabel value="Descripción"/>
                </f:facet>
                <h:outputLabel value="#{deporte.depDescripcion}" styleClass="texto20" />
            </r:column>
            <r:column width="80">
                <f:facet name="header"></f:facet>&nbsp;
                <h:commandButton action="ir_a_editar" image="/imagenColegiatura/editar.png" title="Editar">
                    <f:setPropertyActionListener target="#{deporteController.deporte}" value="#{deporte}"/>
                </h:commandButton>&nbsp;&nbsp;
                <h:commandButton action="#{deporteController.remover}" image="/imagenColegiatura/eliminar.png" title="Eliminar">
                    <f:setPropertyActionListener target="#{deporteController.deporte}" value="#{deporte}"/>
                </h:commandButton>
            </r:column>
            <f:facet name="footer">
                <r:datascroller id="dt" renderIfSinglePage="false"></r:datascroller>
            </f:facet>

        </r:dataTable>
     </td>
  </tr>
  <tr>
    <td colspan="5">&nbsp;</td>
  </tr>
</table>
</h:form>
</f:view>